package com.hko.qrip.bean;

import java.sql.Timestamp;

public class WtwsAlert {
	private Timestamp datetime;
	private String corridor;
	private int magnitude;
	private String location;
	private String alertType;

	@Override
	public boolean equals(Object a) {
		if (a == null)
			return false;
		if (a instanceof WtwsAlert) {
			WtwsAlert alert = (WtwsAlert) a;
			return alert.getDatetime().equals(datetime) && alert.getCorridor().equals(corridor) && alert.getAlertType().equals(alertType);
		}
		return false;
	}

	public Timestamp getDatetime() {
		return datetime;
	}

	public void setDatetime(Timestamp datetime) {
		this.datetime = datetime;
	}

	public String getCorridor() {
		return corridor;
	}

	public void setCorridor(String corridor) {
		this.corridor = corridor;
	}

	public int getMagnitude() {
		return magnitude;
	}

	public void setMagnitude(int magnitude) {
		this.magnitude = magnitude;
	}

	public String getLocation() {
		return location;
	}

	public void setLocation(String location) {
		this.location = location;
	}

	public String getAlertType() {
		return alertType;
	}

	public void setAlertType(String alertType) {
		this.alertType = alertType;
	}
}
